// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ProductionId',
        footer: "Foots",
        cnName: '生产入库',
        name: 'production',
        url: "/production/",
        sortName: "ProductionId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"ProductionCode":"","ProductionName":"","ProductionDept":"","ProductionTime":"","ProductionNote":"","ProductionPerson":""};
    const editFormOptions = [[{"title":"入库编号","required":true,"field":"ProductionCode","type":"text"},
                               {"title":"入库名称","required":true,"field":"ProductionName","type":"text"}],
                              [{"dataKey":"部门","data":[],"title":"入库部门","required":true,"field":"ProductionDept","type":"select"},
                               {"title":"入库时间","required":true,"field":"ProductionTime","type":"date"}],
                              [{"title":"备注","field":"ProductionNote","type":"textarea"},
                               {"dataKey":"用户列表","data":[],"title":"入库人","required":true,"field":"ProductionPerson","type":"select"}]];
    const searchFormFields = {"ProductionCode":"","ProductionName":"","ProductionDept":"","ProductionTime":"","ProductionNote":"","ProductionPerson":""};
    const searchFormOptions = [[{"title":"入库编号","field":"ProductionCode","type":"="},{"title":"入库名称","field":"ProductionName","type":"like"}],[{"dataKey":"部门","data":[],"title":"入库部门","field":"ProductionDept","type":"="},{"title":"入库时间","field":"ProductionTime","type":"date"}],[{"title":"备注","field":"ProductionNote","type":"like"},{"dataKey":"用户列表","data":[],"title":"入库人","field":"ProductionPerson","type":"like"}]];
    const columns = [{field:'ProductionId',title:'主键ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'ProductionCode',title:'入库编号',type:'string',width:110,hidden:true,require:true,align:'left'},
                       {field:'ProductionName',title:'入库名称',type:'string',width:120,require:true,align:'left',sort:true},
                       {field:'ProductionDept',title:'入库部门',type:'int',bind:{ key:'部门',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductionTime',title:'入库时间',type:'datetime',width:150,require:true,align:'left',sort:true},
                       {field:'ProductionNote',title:'备注',type:'string',width:110,align:'left'},
                       {field:'ProductionPerson',title:'入库人',type:'int',bind:{ key:'用户列表',data:[]},width:110,require:true,align:'left'},
                       {field:'ProductCode',title:'产品管理外键',type:'string',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}